package cs.upt.awp.data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@Entity(name = "cities")
@Table(name = "cities")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class City {
	
	@Id
	private Long id;
	private String name;
	@ManyToOne
	private Country country;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Country getCountry() {
		return country;
	}
	public void setCountry(Country country) {
		this.country = country;
	}

}
